<template>
  <div>
    <el-row>
      <el-col :span="2">
        <el-menu default-active="1" class="el-menu-vertical-demo left">
          <el-menu-item index="1">
            <span slot="title">用户列表</span>
          </el-menu-item>
        </el-menu>
      </el-col>

      <el-col :span="22">
        <el-container class="content" direction="vertical">
          <div class="header">会员列表</div>
          <!-- 搜索区域 -->
          <div class="main">
            <el-row>
              <el-col :span="1" class="label"><p>用户名:</p> </el-col>
              <el-col :span="4">
                <el-input v-model="userName" placeholder="用户名称"></el-input>
              </el-col>
              <el-col :span="1" class="label"><p>手机号:</p> </el-col>
              <el-col :span="4">
                <el-input v-model="phone" placeholder="用户名称"></el-input>
              </el-col>
              <el-col :span="1" class="label"><p>注册时间:</p> </el-col>
              <el-col :span="4">
                <div class="block">
                  <el-date-picker
                    v-model="value2"
                    type="datetimerange"
                    :picker-options="pickerOptions"
                    range-separator="至"
                    start-placeholder="开始日期"
                    end-placeholder="结束日期"
                    align="right"
                  >
                  </el-date-picker>
                </div>
              </el-col>
            </el-row>
            <el-row style="margin-top: 20px">
              <el-col :span="1" :offset="1" class="filterUser">
                <el-button type="primary">筛选</el-button>
              </el-col>
              <el-col :span="1">
                <el-button type="primary">导出</el-button>
              </el-col>
            </el-row>
          </div>
          <div class="footer">
            <!-- 表格 -->
            <el-table border style="width: 100%" class="tableData">
              <el-table-column fixed prop="date" label="用户ID" align="center">
              </el-table-column>
              <el-table-column prop="name" label="用户名" align="center"> </el-table-column>
              <el-table-column prop="province" label="手机号" align="center">
              </el-table-column>
              <el-table-column prop="city" label="注册时间" align="center"> </el-table-column>
            </el-table>
            <!-- 分页 -->
            <el-pagination
              background
              layout="prev, pager, next"
              :total="100"
              class="pages"
            >
            </el-pagination>
          </div>
        </el-container>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "user",
  data() {
    return {
      userName: ""
    };
  }
};
</script>

<style scoped>
.label {
  margin-left: 60px;
}
.pages {
  float: right;
  margin: 20px 20px 0 0 ;
}
.tableData {
  margin-top: 100px;
}
.filterUser {
  margin-right: 30px;
}
.left {
  height: 1080px;
  padding-top: 30px;
}
.content {
  width: 95%;
  height: 955px;
  background-color: rgba(255, 255, 255, 100);
  font-size: 14px;
  border: 3px solid skyblue;
  border-radius: 10px;
  margin: 25px 20px 0px 30px;
  padding: 20px;
}
.header {
  height: 30px;
  font-family: SourceHanSansSC-regular;
}
.main {
  height: 148px;
  background-color: rgba(245, 245, 245, 100);
  color: rgba(16, 16, 16, 100);
  font-size: 14px;
  font-family: Roboto;
  padding: 20px 0 0 0;
}
.footer {
}
</style>
